package com.cms.meeting.mapper;

import com.cms.meeting.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper

public interface DepartmentMapper {
    Department getDepId(@Param("id") Integer id);

    List<Department> getAllDeps();

    Integer adddepartment(String departmentname);

    Department getDeptByName(String departmentname);

    Integer deleteDep(Integer departmentid);

    Integer updatedep(@Param("id") Integer id, @Param("name")String name);
}
